package com.alliky.classify.mvp.presenter;

import com.alliky.core.base.BasePresenter;
import com.alliky.classify.mvp.contract.WebViewContract;
import com.alliky.classify.mvp.model.WebViewModel;

public class WebViewPresenter extends BasePresenter<WebViewModel, WebViewContract.View> implements WebViewContract.Presenter {


    public WebViewPresenter(WebViewContract.View view) {
        super(view);
    }

    @Override
    protected WebViewModel createModel() {
        return new WebViewModel();
    }

    @Override
    public void download(String url) {
        if (!isViewAttached()) return;
//        mModel.download(getContext(), url, new HttpCallback<String>() {
//            @Override
//            public void onSuccess(String result) {
//                mView.downloadResult(result);
//            }
//
//            @Override
//            public void onError(int code, String messsage) {
//
//            }
//        });
    }
}
